package com.staginfo.segs.function.registerOrLogin.login.model;

import com.staginfo.segs.function.registerOrLogin.login.LoginConstruct.LoginConstruct;
import com.staginfo.segs.function.registerOrLogin.login.bean.AuthenticateStatus;

/**
 * Created by robert.luozizhao on 2017/9/5 0005.
 */

public class UserLoginModel implements LoginConstruct.LoginModel<AuthenticateStatus>{

    // 相当处理 --》 请求网络登录
/*    @Override
    public void getListData(final String name, final String password, final OnHttpCallBack<User> onHttpCallBack) {
     *//*   new Thread(new Runnable() {
            @Override
            public void run() {
                try {
                    Thread.sleep(2000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
                //登录：判断用户名/密码
                if("stag".equals(name) && "123".equals(password)){
                    //登录成功
                    User user = new User(name, password);
                    onHttpCallBack.onSuccess(user);
                }else{
                    //登录失败
                    onHttpCallBack.onFailed("loging error!!!");
                }

            }
        }).start();*//*
    }*/




    @Override
    public void getData(AuthenticateStatus user) {

    }
}
